package homelesspartners.client.model;

import java.io.Serializable;
import java.util.ArrayList;

public class City implements Serializable {

	private static final long serialVersionUID = 1L;
	private int id = -1;
	private String name = null;
	
	/**
	 * @gwt.typeArgs <homelesspartners.client.model.Shelter>
	 */
	private ArrayList shelters = null;

	/**
	 * @gwt.typeArgs <homelesspartners.client.model.City>
	 */
	private static ArrayList cities = null;

	
	public static ArrayList getCities() {
		return cities;
	}

	
	public static void setCities(ArrayList listOfCities) {
		cities = listOfCities;
	}
	
	public ArrayList getShelters() {
		return shelters;
	}

	
	public void setShelters(ArrayList sheltersList) {
		shelters = sheltersList;
	}

	public boolean isPopulated() {
		return shelters != null ? true: false;
	}
	public void setId(int anId) {
		this.id = anId;
	}

	public void setName(String aName) {
		this.name = aName;
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

}
